tools/hotplug: Add an initscript to start "xl devd" in a driver domain
authorIan Campbell <ian.campbell@citrix.com>
Thu, 16 Jul 2015 16:58:27 +0000 (17:58 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 17 Jul 2015 11:20:52 +0000 (12:20 +0100)
commit2909ad4c96ba5527b35ac87c089116cd0320a5e7
tree996d649eae605293aa422e5cf8589ca0724beccc
parenta49077e52b2d7c1a9d9a8f0a1fc55cf742039a36
tools/hotplug: Add an initscript to start "xl devd" in a driver domain

The removal of the udev rules highlighted that although it has been
replaced by "xl devd" there isn't an initscript to replace it.

To enable this add a --pidfile option to xl devd.

Tested on Linux by running the script in dom0 and checking the daemon
was started/stopped, but not in an actual driver domain environment
since I don't have one conveniently available. I also checked that
running without the --pidfile option still works.

Scripts mainly cribbed from the xencommons for each platform.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Cc: Roger Pau Monné <roger.pau@citrix.com>
Cc: Konrad Rzeszutek Wilk <konrad@darnok.org>
Cc: George Dunlap <george.dunlap@eu.citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
.gitignore
tools/configure
tools/configure.ac
tools/hotplug/FreeBSD/Makefile
tools/hotplug/FreeBSD/rc.d/xendriverdomain.in [new file with mode: 0644]
tools/hotplug/Linux/Makefile
tools/hotplug/Linux/init.d/xendriverdomain.in [new file with mode: 0644]
tools/hotplug/NetBSD/Makefile
tools/hotplug/NetBSD/rc.d/xendriverdomain.in [new file with mode: 0644]
tools/libxl/xl_cmdimpl.c
tools/libxl/xl_cmdtable.c